import java.util.ArrayList;


public class Hand {
	
//	private ArrayList<RCard> rCards;
	private ArrayList<sCard> cards;
	private Player owner;
	private SOCApplet applet;
	
	public Player getOwner() {
		return owner;
	}

	public void setOwner(Player owner) {
		this.owner = owner;
	}

	public Hand(Player player, SOCApplet applet){
//		rCards = new ArrayList<RCard>();
		cards = new ArrayList<sCard>();
		this.owner = player;
		this.applet = applet;
		//Test code
//		cards.add(new KnightCard());
//		cards.add(new InventionCard());
//		cards.add(new MonopolyCard());
//		cards.add(new VictoryPointCard());
//		cards.add(new RoadBuildCard());
	}

	public SOCApplet getApplet() {
		return applet;
	}

	public void setApplet(SOCApplet applet) {
		this.applet = applet;
	}

	public ArrayList<sCard> getCards() {
		return cards;
	}
	public void setCards(ArrayList<sCard> cards) {
		this.cards = cards;
	}
	
	public void addSCard(sCard card){
		cards.add(card);
	}

	
//	public void removeRCards(int type, int quantity){
//		for(int i = 0; i < quantity; i ++){
//			int h = 0;
//			while(((RCard)rCards.get(h)).getType() != type){
//				h++;
//			}
//			if(h < rCards.size()){
//				rCards.remove(h);
//			}
//		}
//	}
	
//	public ArrayList<RCard> getRCardsOfType(int type){
//		ArrayList<RCard> cards = new ArrayList<RCard>();
//		for(RCard c : rCards){
//			if(c.getType() == type)
//				cards.add(c);
//		}
//		return cards;
//	}

//	public void addRCard(RCard c) {
//		rCards.add(c);
//		numCards ++;
//	}
}
